module.exports   B
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 35

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
c 2
b 0
f 0
nc 1
nop 1
dl 0
loc 35
rs 8.8571
1
// Karma configuration file, see link for more information
2
// https://karma-runner.github.io/0.13/config/configuration-file.html
3
4
module.exports = function (config) {
5
  config.set({
6
    basePath: '',
7
    frameworks: ['jasmine', 'angular-cli'],
8
    plugins: [
9
      require('karma-jasmine'),
10
      require('karma-chrome-launcher'),
11
      require('karma-remap-istanbul'),
12
      require('angular-cli/plugins/karma')
13
    ],
14
    files: [
15
      { pattern: './src/test.ts', watched: false }
16
    ],
17
    preprocessors: {
18
      './src/test.ts': ['angular-cli']
19
    },
20
    remapIstanbulReporter: {
21
      reports: {
22
        html: 'coverage',
23
        lcovonly: './coverage/coverage.lcov'
24
      }
25
    },
26
    angularCli: {
27
      config: './angular-cli.json',
28
      environment: 'dev'
29
    },
30
    reporters: ['progress', 'karma-remap-istanbul'],
31
    port: 9876,
32
    colors: true,
33
    logLevel: config.LOG_INFO,
34
    autoWatch: true,
35
    browsers: ['Chrome'],
36
    singleRun: false
37
  });
38
};
39